package com.erp.erp_servers.ShipmentPlan.imp;

import com.erp.erp_dao.ShipmentPlan.IShipmentPlanFileDAO;
import com.erp.erp_entitys.ShipmentPlan.ShipmentPlanFile;
import com.erp.erp_servers.ShipmentPlan.IShipmentPlanFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpShipmentPlanFileService implements IShipmentPlanFileService {

    @Autowired
    private IShipmentPlanFileDAO fileDAO;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return fileDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ShipmentPlanFile record) {
        return fileDAO.insert(record);
    }

    @Override
    public int insertSelective(ShipmentPlanFile record) {
        return fileDAO.insertSelective(record);
    }

    @Override
    public ShipmentPlanFile selectByPrimaryKey(Integer id) {
        return fileDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ShipmentPlanFile record) {
        return fileDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ShipmentPlanFile record) {
        return fileDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<ShipmentPlanFile> selectFileBySpId(Integer spId) {
        return fileDAO.selectFileBySpId(spId);
    }

    @Override
    public int deleteByIdList(List<Integer> idList) {
        return fileDAO.deleteByIdList(idList);
    }
}
